package routes

import (
	"ginblog/utils"
	"github.com/gin-gonic/gin"
	"net/http"
)

func InitRoute(){
	gin.SetMode(utils.AppMode)
    r := gin.Default()

    router := r.Group("api/v1")
    {
    	router.GET("hello", func(c  *gin.Context) {
					c.JSON(http.StatusOK,gin.H{
						"msg":"ok",
			})
		})
	}

	r.Run(utils.HttpPort)
}